package com.young4j.springdemo.config.elasticsearch;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Description
 * @Author yf
 * @Date 2019/1/3 9:33
 **/
@Component
@ConfigurationProperties(prefix = "es")
public class ElastisearchProperties {
    private String clusterNodes;
    private Integer maxDefaultTotalConnection;
    private Integer maxTotalConnection;
    private Integer readTimeOut;
    private Integer connectTimeOut;
    private String index;
    private String type;

    public String getClusterNodes() {
        return clusterNodes;
    }

    public void setClusterNodes(String clusterNodes) {
        this.clusterNodes = clusterNodes;
    }

    public Integer getMaxDefaultTotalConnection() {
        return maxDefaultTotalConnection;
    }

    public void setMaxDefaultTotalConnection(Integer maxDefaultTotalConnection) {
        this.maxDefaultTotalConnection = maxDefaultTotalConnection;
    }

    public Integer getMaxTotalConnection() {
        return maxTotalConnection;
    }

    public void setMaxTotalConnection(Integer maxTotalConnection) {
        this.maxTotalConnection = maxTotalConnection;
    }

    public Integer getReadTimeOut() {
        return readTimeOut;
    }

    public void setReadTimeOut(Integer readTimeOut) {
        this.readTimeOut = readTimeOut;
    }

    public Integer getConnectTimeOut() {
        return connectTimeOut;
    }

    public void setConnectTimeOut(Integer connectTimeOut) {
        this.connectTimeOut = connectTimeOut;
    }

    public String getIndex() {
        return index;
    }

    public void setIndex(String index) {
        this.index = index;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
